﻿@using SpielMitMirFinal.Models;
@{
    int turn = ViewBag.Turn;
    int gameId = ViewBag.GameId;
    SquareInformation[,] myMap = ViewBag.MyMap;
}
<div class="col-md-12" id="mySector">
    <input type="hidden" id="gameId" value=@gameId>
    <input type="hidden" id="myTurn" value=@turn>
    <div class="col-md-12">
        <table id="myTable" data-horizontal="true" data-deleting="false" data-boats="5">
            @for (int i = 0; i < 10; i++)
            {
                <tr>
                    @for (int j = 0; j < 10; j++)
                    {
                        <th style="width:20px;height:20px">
                            @Html.Partial("~/Views/Shared/Partial/_Square.cshtml", myMap[i, j])
                        </th>
                    }
                </tr>
            }
        </table>
    </div>
    <div class="col-md-12">
        <div class="metro">
            <div class="button-set">
                <button class="bg-yellow fg-white" id="rotate">Rotate</button>
                <button class="bg-darkRed fg-white" id="deleting">Delete</button>
                <button class="bg-blue fg-white" id="confirm">Confirm</button>
            </div>
        </div>
    </div>
</div>